<template>
  <div class="page-footer">
    <ul class="footer-nav">
        <li v-for="(item, index) in footerNavList" :key="index" @click="handleLiClick">
          <i :class="item.classes" v-html="item.iconCode"></i>
          <div>{{item.contents}}</div>
        </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeFooter',
  data () {
    return {
      footerNavList: [{
        classes: 'iconfont footer-icon',
        iconCode: '&#xe60a;',
        contents: '首页'
      }, {
        classes: 'iconfont footer-icon',
        iconCode: '&#xe7f9;',
        contents: '分类'
      }, {
        classes: 'iconfont footer-icon release',
        iconCode: '&#xe66f;',
        contents: ''
      }, {
        classes: 'iconfont footer-icon',
        iconCode: '&#xe631;',
        contents: '圈子'
      }, {
        classes: 'iconfont footer-icon',
        iconCode: '&#xe629;',
        contents: '我的'
      }]
    }
  },
  methods: {
    handleLiClick () {
      this.$router.push('/release')
    }
  }
}
</script>

<style scoped>
  .page-footer{
    /*border: 1px solid black;*/
    width: 100%;
    height: 48px;
    margin-top: 32px;
  }
  .footer-nav{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 15px;
  }
  .footer-nav > li{
    flex: auto;
    text-align: center;
    font-size: 10px;
  }
  .footer-icon{
    font-size: 25px;
    margin-top: 5px;
  }
  .release{
    font-size: 35px;
  }
</style>
